<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test19</title>
</head>
<body>
    <script type="text/javascript">
        var a = prompt("请输入一个数字") ;
        if (a%1==0){
            alert(a+"是整数");
        }else {
            alert(a+"是小数");
        }
    </script>
</body>
</html>